<script type="text/javascript">
function logo_upload_success(file, data) {
                var json = $.parseJSON(data)
                $(this).bjuiajax('ajaxDone', json)
                if (json[BJUI.keys.statusCode] == BJUI.statusCode.ok) {
                        $('#logo_pic_up').hide();
                        $('#j_logo_pic').val(json.filename).trigger('validate')
                        $('#j_logo_span_pic').html('<img src="' + json.filename + '" width="400" />')
                }
        }
</script>
<div class="bjui-pageContent" >
        <div data-layout-h="0">
                <!-- 内容区 -->
                <form action="{:U('Operating/logo')}"  class="pageForm nice-validator n-red"   data-loadingmask='false' data-toggle="validate" novalidate="novalidate" method="post" >
                        <table style='margin-top:20px;'>
                                <tr>
                                        <td><label style='margin-left:40px;'>上传Logo （288* 60）:</label></td>
                                        <td>
                                                <div style="display:inline-block; vertical-align:middle;">
                                                        <div id="logo_pic_up" data-toggle="upload" data-uploader="{:U('Pub/image_upload?path=logo')}" 
                                                             data-file-size-limit="1024000000"
                                                             data-file-type-exts="*.jpg;*.png;*.gif;*.mpg"
                                                             data-multi="false"
                                                             data-on-upload-success="logo_upload_success"
                                                             data-icon="cloud-upload"
                                                             data-preview-img ='false'
                                                             data-auto='true'></div>
                                                        <input type="hidden" data-rule='required' name="logo" value="{$logo|default=''}" id="j_logo_pic">
                                                        
                                                </div>
                                                
                                        </td>

                                </tr>
                                <tr>
                                        <td></td>
                                        <td>
                                                <span id="j_logo_span_pic">
                                                                {notempty name='logo'}
                                                                <img src="{$logo|default=''}"  width='400'/>
                                                                {/notempty}
                                                        </span>
                                        </td>
                                </tr>

                        </table>
                </form>
        </div>

</div>
<div class="bjui-pageFooter" border='none'>
        <ul>
                <li><button type="button" class="btn btn-close">关闭</button></li>
                <li><button type="submit" class="btn btn-default">提交</button></li>
        </ul>
</div>
